var RunBackgroundLayer = cc.Layer.extend({
    ctor:function () {
        this._super();
        this.loadBg();
        return true;
    },
    loadBg : function(){
    	var bg1 = new cc.LayerColor(cc.color(93, 93, 93),1280,768);
    	this.addChild(bg1,1);
    	var bg2 = new cc.LayerColor(cc.color(51, 50, 50),1280,52);
    	this.addChild(bg2,2);   	
    	bg2.setPosition(cc.p(0,gg.height-bg2.height)); 
    	var bg3 = new cc.LayerColor(cc.color(129, 129, 129),60,500);
    	this.addChild(bg3,2);
    	bg3.setPosition(cc.p(gg.width-bg3.width*0.5-40,gg.height-bg2.height-bg3.height-30));
    	
    	var title = new cc.LabelTTF("物质的构成","cukai","36");
    	bg2.addChild(title, 2);
    	title.setPosition(cc.p(bg2.width*0.5,bg2.height*0.5));
    	
    	var line1 = new cc.Sprite("#button/line.png");
    	bg3.addChild(line1, 2);
    	line1.setPosition(cc.p(line1.width*0.5,bg3.height-90));
    	var line2 = new cc.Sprite("#button/line.png");
    	bg3.addChild(line2, 2);
    	line2.setPosition(cc.p(line2.width*0.5,bg3.height-180));
    }
});